package com.example.springboot0507.jackson;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author 王博
 * @DateTime 2025-07-21 19:54
 */
@Data
public class User {
   private Long id;
   @JsonProperty(value = "myName")
   private String name;
   @JsonIgnore
   private boolean isFine;
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
   private Date joinDate;
//   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private LocalDateTime birthDate;
}
